<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P158 7.2.5 元素样式</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            transform: rotate(7deg);
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <script>
        var ele = document.getElementById('box');
        ele.style.width = '100px';
        ele.style.height = '100px';
        ele.style.backgroundColor = 'red';
        ele.style.transform = 'rotate(7deg)';
    </script>
    <a href="../首页/page07.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>